<!--标题组件-->
<template>
    <h1 class="title-com">
      <span class="h1-text">
        <slot></slot>
      </span>
      <span class="h1-coner"></span>
    </h1>
</template>

<script>
    export default{
        name: 'titlecom'
    }
</script>

<style scoped>
  .title-com{
    display: block;
    position: relative;
    margin-bottom: 40px;
    height: 40px;
  }
  .h1-text{
    min-width: 240px;
    float: left;
    color: #fff;
    font-size: 40px;
    background-color: indigo;
    padding: 5px 60px 5px 20px;
    border-radius: 20px 0 0 20px;
  }
  .h1-coner{
    float: left;
    display: inline-block;
    width: 0;
    height: 0;
    border-top:29px solid transparent;
    border-left: 28px solid indigo;
    border-bottom: 27px solid indigo;
    border-right: 28px solid transparent;
  }
</style>
